

package mapbase
{
	public class mapTileItemEx extends mapTileItem
	{		
		private var _blockNum:int;
		
		//动态阻挡类型
		private var _blockType:int;
		
		public function get blockNum():int
		{
			return _blockNum;
		}
		public function set blockNum(n:int):void
		{
			_blockNum = n;
		}
		
		public function get blockType():int
		{
			return _blockType;
		}
		public function set blockType(t:int):void
		{
			_blockType = t;
		}
		
		public function setBlock(num:int,type:int):void
		{
			_blockNum = num;
			if(type)
			{
				_blockType |= type;
			}
			else
			{
				blockType = 0;
			}
		}

		public function haveType(type:int):Boolean
		{
			return (_blockType & type) != 0;
		}
		
		public function mapTileItemEx(f:int):void
		{
			super(f);
			
			_blockNum = 0;
			_blockType = 0;
		}
	}
}